namespace devtm.Emit
{
    using System;
    

    [Serializable]
    public class ThrowExceptionStatement : Statement
    {
        private Expression toThrow;

        public ThrowExceptionStatement()
        {
        }

        public ThrowExceptionStatement(Expression toThrow)
        {
            this.ToThrow = toThrow;
        }

        public Expression ToThrow
        {
            get
            {
                return this.toThrow;
            }
            set
            {
                this.toThrow = value;
            }
        }

        public override object Visit(Object parent, object builder)
        {
            throw new NotImplementedException();
        }
    }
}
